package com.inspur.cmis.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.inspur.cmis.mapper.CmworkMapper;
import com.inspur.cmis.pojo.Cmwork;
import com.inspur.cmis.service.CmWorkService;
@Service("cmWorkService")
public class CmWorkServiceImpl implements CmWorkService {
	@Autowired
	private CmworkMapper CmworkMapper;

	@Override
	public List<Cmwork> getWorkList(HashMap<String, Object> map) {
		return CmworkMapper.getWorkList(map);
	}
	public List<Cmwork> getWorkByKey(String key){
		return CmworkMapper.getWorkByKey(key);
	}
	@Override
	public void updateWorkHist(Cmwork hist) {
		CmworkMapper.updateWorkHist(hist);
		
	}
	
}